package cn.ryh.designpatterndemo.commandpattern;

/**
 * @ClassName CommandOne
 * @Description TODO
 * @Author RaoYH
 * @Date 2019/4/25
 */
public class CommandOne extends AbstractCommand {
    private AbstractReceive receive;

    public CommandOne(AbstractReceive receive) {
        this.receive = receive;
    }

    @Override
    public void execute() {
        this.receive.doSomethingForCommandOne();
    }
}
